package method

import (
	"server/biz"
	"server/service"
)

func AccountInfo(md *service.Meta) (interface{}, error) {
	user_id := biz.GetCookieUserId(md.Request)
	if user_id == 0 {
		//user_id = 1
		return nil, service.NewError(400, "登录信息失效, 请在微信刷新页面")
	}
	user := biz.GetUser(user_id)
	return user.TL(), nil
}
